<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <title>首页</title>
    <style>
        header a{
            text-decoration: none;
            color: #6c6c6c;
        }
        .el-table .el-table__cell{
            padding: 0;
        }
        .bg-purple {
            background: white;
        }
        .bg-purple-light {
            background: white;
        }
        .grid-content {
            border-radius: 4px;
            min-height: 36px;
        }
    </style>
</head>
<body>
<div id="app">
    <el-container>
        <!--top栏-->
        <el-header height="40px">
            <div style="width: 1200px;margin: 0 auto">
                <el-row :gutter="20">
                    <el-col :span="4">
                        <div class="grid-content bg-purple">
                            <a href="/login.html">登录</a>
                            <el-divider direction="vertical"></el-divider>
                            <a href="/reg.html">注册</a>
                            <el-divider direction="vertical"></el-divider>
                        </div>
                    </el-col>
                    <el-col :span="9"><div class="grid-content bg-purple"></div></el-col>
                    <el-col :span="11"><div class="grid-content bg-purple">
                        <span><a href="">我的订单</a></span>
                        <el-divider direction="vertical"></el-divider>
                        <a href=""><span>我的臻城</span></a>
                        <el-divider direction="vertical"></el-divider>
                        <a href=""><span>臻城会员</span></a>
                        <el-divider direction="vertical"></el-divider>
                        <a href=""><span>企业采购</span></a></a>
                        <el-divider direction="vertical"></el-divider>
                        <a href=""><span>客户服务</span></a>
                        <el-divider direction="vertical"></el-divider>
                        <a href=""><span>网页导航</span></a>
                    </div></el-col>
                </el-row>
            </div>
        </el-header>
        <el-header height="150px">
            <div style="width: 1200px;margin: 0 auto">
                <img src="img/sompic/logo1.png" style="width: 200px;height: 100px;vertical-align: middle" alt="">
                <div style="float: right;position: relative;top: 10px;margin-right: 200px">
                    <div style="overflow: hidden;display: inline">
                        <el-input placeholder="请输入搜索内容" v-model="wd">
                            <el-button slot="append" icon="el-icon-search" @click="search()"></el-button>
                        </el-input>
                    </div>
                    <div style="position: absolute;display: inline;float:right;margin-left: 80px;width: 100px"><el-button>购物车</el-button></div>
                    <div>
                        <a href="/">首页</a><el-divider direction="vertical"></el-divider>
                        <a href="">热点资讯</a><el-divider direction="vertical"></el-divider>
                        <a href="">商家入驻</a><el-divider direction="vertical"></el-divider>
                        <a href="">社会招聘</a><el-divider direction="vertical"></el-divider>
                        <a href="">校园招聘</a><el-divider direction="vertical"></el-divider>
                        <a href="">帮助</a>
                    </div>
                </div>
            </div>
            <!--导航菜单开始-->
            <div style="background-color: #0AE2B2;width: 1200px;margin: 0 auto" >
                <el-menu style="width: 1200px"
                    :default-active="activeIndex"
                    class="el-menu-demo"
                    mode="horizontal"
                    @select="handleSelect"
                    background-color="green"
                    text-color="#fff"
                    active-text-color="#fff">
                    <el-row>
                        <el-col :span="2"><div class="grid-content bg-purple">
                            <el-menu-item style="text-align: center">品优超市</el-menu-item>
                        </div></el-col>
                        <el-col :span="2"><div class="grid-content bg-purple">
                            <el-menu-item>美妆</el-menu-item>
                        </div></el-col>
                        <el-col :span="2"><div class="grid-content bg-purple-light">
                            <el-menu-item>洗护</el-menu-item>
                        </div></el-col>
                        <el-col :span="2"><div class="grid-content bg-purple">
                            <el-menu-item>家电</el-menu-item>
                        </div></el-col>
                        <el-col :span="2"><div class="grid-content bg-purple">
                            <el-menu-item>团购</el-menu-item>
                        </div></el-col>
                        <el-col :span="2"><div class="grid-content bg-purple-light">
                            <el-menu-item>有趣</el-menu-item>
                        </div></el-col>
                        <el-col :span="2"><div class="grid-content bg-purple">
                            <el-menu-item>秒杀</el-menu-item>
                        </div></el-col>
                        <el-col :span="2"><div class="grid-content bg-purple-light">
                            <el-menu-item style="text-align: center">优惠</el-menu-item>
                        </div></el-col>
                    </el-row>
            </el-menu>
            </div>
            <!--导航菜单结束-->
        </el-header>
        <el-main style="width: 1200px;margin: 0 auto">
            <el-row gutter="20">
                <el-col span="18">
                    <!--轮播图开始-->
                    <el-carousel height="454px">
                        <el-carousel-item>
                            <img src="/img/banner/banner1.jpg" width="100%" height="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item>
                            <img src="/img/banner/banner2.jpg" width="100%" height="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item>
                            <img src="/img/banner/banner1.png" width="100%" height="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item>
                            <img src="/img/banner/banner4.jpg" width="100%" height="100%" alt="">
                        </el-carousel-item>
                    </el-carousel>
                    <!--轮播图结束-->
                </el-col>
                <el-col span="6">
                    <el-card style="height: 454px">
                        <h3>
                            <i style="font-weight: bold"
                               class="el-icon-trophy">销量最高</i>
                        </h3>
                        <el-divider></el-divider>
                        <el-table
                                :data="topArr"
                                style="width: 100%">
                            <el-table-column type="index" label="排名">
                            </el-table-column>
                            <el-table-column prop="title" label="商品标题" width="100">
                            </el-table-column>
                            <el-table-column prop="saleCount" label="销量">
                            </el-table-column>
                        </el-table>
                    </el-card>
                </el-col>
            </el-row>
            <div>
                <div class="block"  style="width: 232px;height: 163px;float: left">
                    <span class="demonstration"></span>
                    <el-image :src="src"></el-image>
                </div>
                <div class="block"  style="width: 232px;height: 163px;float: left">
                    <span class="demonstration"></span>
                    <el-image :src="src"></el-image>
                </div>
                <div class="block"  style="width: 232px;height: 163px;float: left">
                    <span class="demonstration"></span>
                    <el-image :src="src"></el-image>
                </div>
                <div class="block"  style="width: 232px;height: 163px;float: left">
                    <span class="demonstration"></span>
                    <el-image :src="src"></el-image>
                </div>
                <div class="block"  style="width: 232px;height: 163px;float: left">
                    <span class="demonstration"></span>
                    <el-image :src="src"></el-image>
                </div>
            </div>
        <!--商品列表开始-->
            <el-row gutter="20">
                <el-col style="margin: 10px 0" span="6" v-for="p in productArr">
                    <el-card>
                        <img :src="p.url" width="100%" alt="">
                        <div>
                            <p style="font-size: 15px;height: 40px;margin-top: 0">
                                {{p.title}}</p>
                            <p style="font-size: 12px;color: #666">
                                ￥{{p.price}}<s>{{p.oldPrice}}</s>
                                <span style="float: right">销量:{{p.saleCount}}件</span>
                            </p>
                        </div>
                    </el-card>
                </el-col>
            </el-row>
        <!--商品列表结束-->
        </el-main>
        <el-footer>
            <div style="background-color: rgba(150, 140, 140, 0.3);
                    padding:30px 0;text-align: center;
                    color: rgba(255,255,255,0.8);width: 1200px;margin: 0 auto">
                <p>Copyright © 云尚臻城有限公司版权所有 京ICP备12003709号-3 京公网安备 11010802029572号
                </p>
                <p>达内在线WWW.TMOOC.CN 专注于IT职业技能培训</p>
                <p>涵盖20余门课程体系，致力于打造权威的IT职业教育学习平台</p>
            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
   let v = new Vue({
        el: '#app',
        data: function() {
            return {
                activeIndex:"1",
                wd:"",
                topArr:[{title:"小米电视",saleCount:688},
                    {title:"李宁毛巾",saleCount:548},
                    {title:"安踏拖鞋",saleCount:435},
                    {title:"华为手机",saleCount:322},
                    {title:"匹克球鞋",saleCount:256},
                    {title:"联想电脑",saleCount:198},],
                productArr:[{title:"森马牛仔裤女宽松慢跑裤运动风2022春季新款显瘦束脚长裤复古",price:233,oldPrice:598,url:"/img/",saleCount:2342},
                    {title:"茵曼马甲连衣裙两件套春季新款娃娃领色织格长袖背心裙套装",price:233,oldPrice:598,url:"imgs/b.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"imgs/c.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"imgs/d.jpg",saleCount:2342},
                    {title:"BEASTER小恶魔鬼脸明星同款夹克毛绒保暖加厚字母印花宽松外套ins",price:233,oldPrice:598,url:"imgs/e.jpg",saleCount:2342},
                    {title:"香影毛呢外套女中长款2021年冬季新款气质韩版娃娃领紫色呢子大衣",price:233,oldPrice:598,url:"imgs/f.jpg",saleCount:2342},
                    {title:"SEMIR森马商场同款打底针织毛衣纯色高领新品显瘦",price:233,oldPrice:598,url:"imgs/g.jpg",saleCount:2342},
                    {title:"美特斯邦威女MTEE 贺岁系列中长款风衣736598",price:233,oldPrice:598,url:"imgs/h.jpg",saleCount:2342},
                    {title:"imone2021秋款黑色小西装外套女韩版学生宽松学院风外套jk外套",price:233,oldPrice:598,url:"imgs/i.jpg",saleCount:2342},
                    {title:"BEASTER 小恶魔明星同款保暖长袖街头潮流连帽卫衣情侣上衣",price:233,oldPrice:598,url:"imgs/j.jpg",saleCount:2342},
                    {title:"憨厚皇后100%绵羊皮2021秋海宁真皮皮衣女长款修身绵羊皮风衣外",price:233,oldPrice:598,url:"imgs/k.jpg",saleCount:2342},
                    {title:"美特斯邦威高腰牛仔裤女宽松小脚新款春秋彩色潮流女士牛仔",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342}],
                src:"imgs/aaa20221018184946.png"
            }
        },
       methods: {
           handleSelect(key,keyPath){
               console.log(key,keyPath);
           }
       }
   })
</script>
</html>
